﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Year.aspx.cs" Inherits="WebApplication2.Web.Year" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>年度计划</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script src="../../lib/layui/layui.js"></script>
    <link href="../../css/font.css" rel="stylesheet" />
    <link href="../../css/xadmin.css" rel="stylesheet" />
    <script src="../../js/jquery-3.2.1.min.js"></script>
    <script src="../js/xadmin.js"></script>
    <script src="../js/public.js"></script>
    <script src="../../js/xadmin.js"></script>
    <script src="../js/cookie.js"></script>


</head>
 <body>
        <div class="x-body">
            <!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
            <div id="main" style="width: 100%;height:400px;"></div>
        </div>
     <script src="../js/echarts.common.min.js"></script>
        <script type="text/javascript">

            layui.use(['table','form'], function () {
                var layer = layui.layer;
                var form = layui.form;

                var obj = new Object();
                myAjax("FileHandler.ashx", "year", obj, false, function (data) {
                    //提示层
                    console.log(data);
                    //if (data.Code == 1) {
                    //    layer.msg('success');
                    //    console.log(data);
                    //} else if (data.Code == 2) {
                    //    layer.alert('已经存在了一个单号为 ' + obj_project.pr_id + ' 的PR单', {
                    //        skin: 'layui-layer-molv' //样式类名
                    //        , closeBtn: 0
                    //        //动画类型
                    //    });
                    //}

                }, function () {
                    layer.alert('发生了一些预期之外的错误');
                    console.alert('发生一些意外');
                });
             

            });
         



            // 基于准备好的dom，初始化echarts实例
            var myChart = echarts.init(document.getElementById('main'));
            // 指定图表的配置项和数据
            var option = {
                title: {
                    text: '近年产值'
                },
                tooltip: {
                    trigger: 'axis'
                },
                legend: {
                    data: ['产值']
                },
                grid: {
                    left: '3%',
                    right: '4%',
                    bottom: '3%',
                    containLabel: true
                },
                toolbox: {
                    feature: {
                        saveAsImage: {}
                    }
                },
                xAxis: {
                    type: 'category',
                    boundaryGap: false,
                    data: ['2015', '2016', '2017', '2018','2019','2020','2021']
                },
                yAxis: {
                    type: 'value'
                },
                series: [
                    {
                        name: '产值',
                        type: 'line',
                        stack: '总量',
                        data: [1000, 2000, 3000, 4000, 5000,4000,300 ]
                    },
                   
                ]
            };
            // 使用刚指定的配置项和数据显示图表。
            myChart.setOption(option);
    </script>
  
    </body>
</html>
